<!--

Copyright 2011 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Street Identity AP</title>

<link rel="stylesheet" href="/static/blueprint/screen.css" type="text/css"
  media="screen, projection">
<link rel="stylesheet" href="/static/blueprint/print.css" type="text/css"
  media="print">
<link rel="stylesheet" href="/static/blueprint/src/forms.css" type="text/css"
  media="print">
<!-- Import fancy-type plugin. -->
<link rel="stylesheet" href="/static/blueprint/plugins/fancy-type/screen.css"
  type="text/css" media="screen, projection" />

<!--[if lt IE 8]><link rel="stylesheet" href="../../blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->

<link rel="stylesheet" href="/static/style.css" type="text/css" />
</head>

<body>

  <div class="container">

    <div id="header" class="span-22 last prepend-top">
      <a href="/"><img src="/static/google_streetidentity.png"
        alt="Google Street Identity Project" /> </a>
    </div>

    <hr />
    <div id="subheader" class="span-24 last">
      <h3 class="alt">
        <strong>Identity Provider</strong> allows you to sign in to different
        Relying Parties on the Web.
      </h3>
    </div>
    <hr />
    <div class="span-15 colborder">
      <div class="span-15 last append-bottom">
        <h3>Request for access</h3>
        <p>&nbsp;</p>
        <p>
          <strong>{{ application.name }}</strong> is requesting permission to:
        <dl>
          {% for requested_scope in requested_scopes %}
          <dd class="text">
            <img src="{{ requested_scope.icon}}" alt="scope icon" height="20" />
            {{ requested_scope.desc }}
          </dd>
          {% endfor %}
        </dl>
        </p>
        <form action="/oauth/authorize?{{query}}" method="post">
          <input type="hidden" name="decision" value="allow" /> <input
            type="submit" value="Allow access" class="button save"/> <input type="hidden"
            name="decision" value="deny" /> <input type="submit"
            value="No Thanks" class="button"/>
        </form>
        </p>
      </div>

      <div class="span-15 last prepend-top">
        <p>
          You are signed in as <strong>{{ user.username }}</strong> 
          ({{user.email }}). <a href="/sign_out?continue_to={{url}}">Sign in</a> as
          a different user.
        </p>
      </div>
    </div>
        <div class="span-7 last">
      <img src="/static/streetidentity-idp.png"
        alt="Google Street Identity Provider" width="310" />
    </div>
    <hr />
    <div class="span-3 last right">
      <img src="/static/google_logo_small.png" alt="Google Inc." align="right" />
    </div>
  </div>

</body>
</html>
